<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>009-对象的扩展运算符.html</title>
</head>
<body>
	
</body>
<script>
	const obj = {
		name:"chris",
		age:24,
		friend:{
			name:"peter"
		}
	}
	// console.log(obj)
  	const obj1 ={...obj}


  	
  	const obj2 = obj

  	obj2.name = 'joe'

  	obj1.name = "vincent"
 
  	// obj1.friend.name = "ane"
  	console.log('obj',obj)
	console.log('obj',obj)
	console.log('obj1',obj1)
</script>
</html>